using DevExpress.XtraEditors;
using System.ComponentModel;

namespace DevTools.CodeFormatter.Controls
{
    public partial class CodeViewer : XtraUserControl
    {
        public CodeViewer()
        {
            InitializeComponent();
        }

        public string Caption
        {
            get { return grcContainer.Text; }
            set { grcContainer.Text = value; }
        }

        public string Code
        {
            get { return txtCode.Text; }
            set { txtCode.Text = value; }
        }

        public bool ReadOnly
        {
            get { return txtCode.Properties.ReadOnly; }
            set { txtCode.Properties.ReadOnly = value; }
        }
    }
}